package com.yuncool.sky.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
@TableName(value = "subject")
public class Subject{

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "cid")
    private Integer cid;

    @TableField(value = "title")
    private String title;

    @TableField(value = "content")
    private String content;

    @TableField(value = "img_url")
    private String imgUrl;

    @TableField(value = "teacher")
    private String teacher;

    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 已经抢了多少
     */
    @TableField(value = "sold")
    private String sold;

    /**
     * 总数
     */
    @TableField(value = "sum")
    private String sum;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_time")
    private Date updateTime;

    public static final String COL_CID = "cid";

    public static final String COL_TITLE = "title";

    public static final String COL_CONTENT = "content";

    public static final String COL_IMG_URL = "img_url";

    public static final String COL_TEACHER = "teacher";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_SOLD = "sold";

    public static final String COL_SUM = "sum";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}